echo off
rem This script can be used to build .cdb files and .out files for
rem the various examples provided with the DDK.
rem This script builds all examples supported by the latest release of
rem DSP/BIOS and CCS.  Some of the tconf scripts will generate errors
rem if you are using an earlier version of CCS.


rem You should change the TIROOT shell variable if you have
rem installed CCS in a different directory (default is c:	i).
echo on

set TIROOT=c:\ti
set TCONF=%TIROOT%\bin\utilities\tconf\tconf
set TIMAKE=%TIROOT%\cc\bin\timake

rem =============== apps/audio/dsk6416/pip_audio.pjt ===============
cd apps\audio\dsk6416
%TCONF% -Dconfig.tiRoot=%TIROOT% pip_audiocfg.tcf && %TIMAKE% pip_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6416/swi_audio.pjt ===============
cd apps\audio\dsk6416
%TCONF% -Dconfig.tiRoot=%TIROOT% swi_audiocfg.tcf && %TIMAKE% swi_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6416/tsk_audio.pjt ===============
cd apps\audio\dsk6416
%TCONF% -Dconfig.tiRoot=%TIROOT% tsk_audiocfg.tcf && %TIMAKE% tsk_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6711/pip_audio.pjt ===============
cd apps\audio\dsk6711
%TCONF% -Dconfig.tiRoot=%TIROOT% pip_audiocfg.tcf && %TIMAKE% pip_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6711/swi_audio.pjt ===============
cd apps\audio\dsk6711
%TCONF% -Dconfig.tiRoot=%TIROOT% swi_audiocfg.tcf && %TIMAKE% swi_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6711/tsk_audio.pjt ===============
cd apps\audio\dsk6711
%TCONF% -Dconfig.tiRoot=%TIROOT% tsk_audiocfg.tcf && %TIMAKE% tsk_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6713/pip_audio.pjt ===============
cd apps\audio\dsk6713
%TCONF% -Dconfig.tiRoot=%TIROOT% pip_audiocfg.tcf && %TIMAKE% pip_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6713/swi_audio.pjt ===============
cd apps\audio\dsk6713
%TCONF% -Dconfig.tiRoot=%TIROOT% swi_audiocfg.tcf && %TIMAKE% swi_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/dsk6713/tsk_audio.pjt ===============
cd apps\audio\dsk6713
%TCONF% -Dconfig.tiRoot=%TIROOT% tsk_audiocfg.tcf && %TIMAKE% tsk_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/evmdm642/pip_audio.pjt ===============
cd apps\audio\evmdm642
%TCONF% -Dconfig.tiRoot=%TIROOT% pip_audiocfg.tcf && %TIMAKE% pip_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/evmdm642/swi_audio.pjt ===============
cd apps\audio\evmdm642
%TCONF% -Dconfig.tiRoot=%TIROOT% swi_audiocfg.tcf && %TIMAKE% swi_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/evmdm642/tsk_audio.pjt ===============
cd apps\audio\evmdm642
%TCONF% -Dconfig.tiRoot=%TIROOT% tsk_audiocfg.tcf && %TIMAKE% tsk_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/teb6416/pip_audio.pjt ===============
cd apps\audio\teb6416
%TCONF% -Dconfig.tiRoot=%TIROOT% pip_audiocfg.tcf && %TIMAKE% pip_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/teb6416/swi_audio.pjt ===============
cd apps\audio\teb6416
%TCONF% -Dconfig.tiRoot=%TIROOT% swi_audiocfg.tcf && %TIMAKE% swi_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/audio/teb6416/tsk_audio.pjt ===============
cd apps\audio\teb6416
%TCONF% -Dconfig.tiRoot=%TIROOT% tsk_audiocfg.tcf && %TIMAKE% tsk_audio.pjt DEBUG -a
cd ..\..\..

rem =============== apps/pci/vt1423/async_pci.pjt ===============
cd apps\pci\vt1423
%TCONF% -Dconfig.tiRoot=%TIROOT% async_pcicfg.tcf && %TIMAKE% async_pci.pjt DEBUG -a
cd ..\..\..

rem =============== apps/pci/vt1423/sync_pci.pjt ===============
cd apps\pci\vt1423
%TCONF% -Dconfig.tiRoot=%TIROOT% sync_pcicfg.tcf && %TIMAKE% sync_pci.pjt DEBUG -a
cd ..\..\..

rem =============== apps/uart/dsk6711_mcbsp/uarttest.pjt ===============
cd apps\uart\dsk6711_mcbsp
%TCONF% -Dconfig.tiRoot=%TIROOT% uarttestcfg.tcf && %TIMAKE% uarttest.pjt DEBUG -a
cd ..\..\..

rem =============== apps/uart/evmdm642/uarttest.pjt ===============
cd apps\uart\evmdm642
%TCONF% -Dconfig.tiRoot=%TIROOT% uarttestcfg.tcf && %TIMAKE% uarttest.pjt DEBUG -a
cd ..\..\..

rem =============== apps/uart/teb6416_mcbsp/uarttest.pjt ===============
cd apps\uart\teb6416_mcbsp
%TCONF% -Dconfig.tiRoot=%TIROOT% uarttestcfg.tcf && %TIMAKE% uarttest.pjt DEBUG -a
cd ..\..\..
rem ======== video examples =======
cd apps\video\evmdm642
call build.bat
cd ..\..\..
